#ifndef VINOINTERFACE_H
#define VINOINTERFACE_H

#include <QObject>
#include <QDBusArgument>
#include <QVariant>
#include <QDBusMetaType>
#include <QGSettings>
#include "universalinterface.h"

class VinoInterface : public QObject
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.ukui.ukcc.session.Vino")
    Q_PROPERTY(bool isViewOnly READ getViewOnly)
    Q_PROPERTY(bool isPrompt READ getPromptEnabled)
    Q_PROPERTY(QString method READ getMethod)
    Q_PROPERTY(QString password READ getPassword)
    Q_PROPERTY(bool isActive READ getVinoServerStatus)

public:
    VinoInterface();

protected:
    bool getViewOnly();
    bool getPromptEnabled();
    QString getMethod();
    QString getPassword();
    bool getVinoServerStatus();

public Q_SLOTS:
    void setVinoKey(const QString &key, bool value);
    void setVinoKey(const QString &key, QString value);
    void setVinoKey(const QString &key, QByteArray value);

private:
    const QString kVinoViewOnlyKey = "view-only";
    const QString kVinoPromptKey = "prompt-enabled";
    const QString kAuthenticationKey = "authentication-methods";
    const QString kVncPwdKey = "vnc-password";

    QGSettings *mVinoGsettings = nullptr;
    QMap <QString, QString> mGsettingMap;

};

#endif // VINOINTERFACE_H
